package com.sen.rbac.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sen.rbac.model.SysTenant;
import com.sen.rbac.vo.SysTenantVO;
import org.apache.ibatis.annotations.Param;

/**
 * @author esjiang
 */
public interface SysTenantDao extends BaseMapper<SysTenant> {

    /**
     * 查询并搜索
     * @param page
     * @param area
     * @param tenantName
     * @return
     */
    IPage<SysTenantVO> list(Page<SysTenantVO> page, @Param("area") String area, @Param("tenantName") String tenantName) ;
}
